package com.wanmait.demo.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.mapper.NoticeMapper;
import com.wanmait.demo.pojo.Notice;
import com.wanmait.demo.service.NoticeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class NoticeServiceimpl implements NoticeService {
    @Resource
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> selectTitleAndContent() {
        return noticeMapper.selectTitleAndContent();
    }

    @Override
    public void insert(Notice object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Notice object) {

    }

    @Override
    public Notice findById(Integer id) {
        return null;
    }

    @Override
    public List<Notice> findAll() {
        return null;
    }

    @Override
    public PageInfo<Notice> findPage(int pageNum, int pageSize) {
        return null;
    }
}
